The new lifecycle patches in xen-unstable added 3 new operations which can
authorEwan Mellor <ewan@xensource.com>
Thu, 7 Dec 2006 12:15:30 +0000 (12:15 +0000)
committerEwan Mellor <ewan@xensource.com>
Thu, 7 Dec 2006 12:15:30 +0000 (12:15 +0000)
commitb744adfbba82cc16fbdd6285b068b07436e600fe
tree74172e11707d891048c346a46a248b8400d43b6e
parent504c725be09c53962aa5e5ada544895de02c1757
The new lifecycle patches in xen-unstable added 3 new operations which can
be performed on domains - new, start and delete.  libvirt has had no-op
stub implementations of these APIs for a while & thus we'd enable their
use for Xen 3.0.4 builds. The new APIs are not currently exposed via the
existing SEXPR protocol, and since the new Xen-API protocol is unsupported
tech-preview for 3.0.4 we don't want to re-write against that just yet.

Thus the attached patch adds the 3 neccessary bindings for the SEXPR protocol
to allow the lifecycle functionality to be invoked. It also allows the 'state'
parameter to be specified when listing domains, so we can explicitly request
inactive domains if we know we're running against a 3.0.4 era XenD

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tools/python/xen/xend/server/SrvDomain.py
tools/python/xen/xend/server/SrvDomainDir.py